﻿<script src="/static/js/jquery-2.1.1.js"></script>
<script src="/static/bootstrap/js/bootstrap.js"></script>
<link href="/static/bootstrap/css/bootstrap.min.css" rel="stylesheet"/>
<link href="/static/layui/css/layui.css" rel="stylesheet"/>
<script src="/static/layui/layui.js"></script>

<style>
    .layui-inline{margin-bottom:15px;display: inline-block}
    .layui-input-block{margin-left:0px!important;}
    .zxd_coordinate{border:1px solid silver;line-height:30px;height:30px;display: inline-block;padding:0px 10px;border-radius:3px;margin:5px;background-color: #0b6fff;color: #fff}
    .zxd_contetnt{line-height:30px;padding-right:10px!important;padding-left:10px!important;}
    .zxd_list{display: inline-block;width:100%;line-height:38px;}
    .zxd_list div{background-color:#f5f5f5;margin-bottom:15px;padding:5px 10px;border-radius:4px;display: inline-block;width:100%}

    .zxd_list p{display: inline-block;width:100%}
    .zxd_list span{display:inline-block;text-align: right;font-size:12px;}
    .zxd_list span:last-child{float: right}
    .zxd_history{padding-right:10px!important;padding-left:10px!important;height:300px;display: block;overflow:auto;  }
</style>
<div class="modal-body">

    <!--layui-form-pane-->
    <form class="layui-form layui-form-pane form-horizontal" name="saveForm" action="" >

        <div class="layui-form-item layui-col-md12">
            <label class="layui-form-label">关联项目</label>
            <div class="input-group col-xs-9" style="float: left">
                <input type="text" disabled value="{$detail.project}" class="layui-input" >
            </div>
        </div>

        <div class="layui-form-item layui-col-md12">
            <label class="layui-form-label">时间</label>
            <div class="input-group col-xs-9" style="float: left">
                <input type="text" disabled value="{$detail.sumbit_time}" class="layui-input" >
            </div>
        </div>


        <div class="layui-form-item layui-col-md12">
            <label class="layui-form-label">联系电话</label>
            <div class="input-group col-xs-9" style="float: left">
                <input type="text" disabled value="{$detail.phone}" class="layui-input" >
            </div>
        </div>

        <div class="layui-form-item layui-col-md12">
            <label class="layui-form-label">提交时间</label>
            <div class="input-group col-xs-9" style="float: left">
                <input type="text" disabled value="{$detail.addtime}" class="layui-input" >
            </div>
        </div>

        <div class="layui-form-item layui-col-md12">
            <label class="layui-form-label">协调人员</label>
            <div class="input-group col-xs-9" style="float: left">

                {volist name="coordinateList" id="vo"}
                    <span class="zxd_coordinate">{$vo.name}{if condition="$vo['dictionaries'] neq ''"}【{$vo.dictionaries}】{/if}</span>
                {/volist}

            </div>
        </div>

        <div class="layui-form-item layui-col-md12">
            <label class="layui-form-label">求助状态</label>
            <div class="input-group col-xs-2" style="float: left">
                <select class="layui-select" lay-search="" name="status">
                    <option value="">全部</option>
                    {volist name="status" id="vo"}
                    <option value="{$key}" {if condition="$detail.status eq $key"} selected {/if}>{$vo}</option>
                    {/volist}
                </select>

            </div>
        </div>

        <div class="layui-form-item layui-col-md12">
            <label class="layui-form-label">求助内容</label>
            <div class="input-group col-xs-9 zxd_contetnt" style="float: left">
                {$detail.content}
            </div>
        </div>

        <div class="layui-form-item layui-col-md12">
            <label class="layui-form-label">评价</label>
            <div class="input-group col-xs-9 zxd_contetnt" style="float: left">
                <select class="layui-select" lay-search="" name="evaluate">
                    <option value="0" >请选择</option>
                    <option value="1" {if condition="$detail.evaluate eq 1"} selected {/if}>满意</option>
                    <option value="2" {if condition="$detail.evaluate eq 2"} selected {/if}>不满意</option>
                </select>
            </div>
        </div>

        <div class="layui-form-item layui-col-md12">
            <label class="layui-form-label">协调记录</label>
            <div class="input-group col-xs-9 zxd_history" style="float: left;">
                {if condition="count($history) eq 0"}
                <div class="zxd_list">暂无协调记录</div>
                {/if}
                {volist name="history" id="vo" }
                    <div class="zxd_list">
                        <div>
                            <b>{$vo.name}:</b>{$vo.content}
                            {if condition="$vo.person neq ''"} <p><span>负责人:{$vo.person}</span></p>{/if}
                            {if condition="$vo.contact neq ''"} <p><span>联系电话:{$vo.contact}</span></p>{/if}
                            <p>{if condition="$vo.finish_time neq ''"}<span>办结时间:{$vo.finish_time}</span>{/if}<span>{$vo.addtime}</span></p>
                        </div>
                    </div>
                {/volist}

            </div>
        </div>


        <input type="hidden" name="id" value="{$detail.id}">
    </form>

</div>
<script>

    layui.use(['form', 'laydate','upload'], function () {
        var form = layui.form;


    });






</script>